Skip to content

fix: enforce ISO 8601 timestamp format in episodic memory#108

Open
Jah-yee wants to merge 5 commits intoEverMind-AI:mainfrom
Jah-yee:fix/iso8601-timestamp
Open

fix: enforce ISO 8601 timestamp format in episodic memory#108
Jah-yee wants to merge 5 commits intoEverMind-AI:mainfrom
Jah-yee:fix/iso8601-timestamp

Conversation

@Jah-yee
Copy link

@Jah-yee Jah-yee commented Mar 2, 2026

Summary

Fixes Issue #48: Inconsistent timestamp formats in episodic memories

Changes

Updated src/memory_layer/prompts/en/episode_mem_prompts.py to enforce strict ISO 8601 format:

  • Required format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM
  • Examples: 2026-01-23T02:19:25Z or 2026-01-23T10:07:00+08:00

Why

Previous timestamps had inconsistent formats causing parsing issues.

Jah-yee added 5 commits March 2, 2026 23:54
- src/biz_layer/mem_db_operations.py line 146
- src/infra_layer/.../episodic_memory_milvus_repository.py line 127

Bare except catches BaseException including KeyboardInterrupt and SystemExit.
Using except Exception preserves fallback behavior while allowing system exceptions to propagate.

Fixes EverMind-AI#98
In simple_memory_manager.py search() method docstring,
the "rrf" retrieval mode was listed twice.

Removed the first occurrence as the second is more descriptive.

Fixes EverMind-AI#97
The ./docker/mongodb/init:/docker-entrypoint-initdb.d volume mount
in docker-compose.yaml references a directory that never existed.

MongoDB initialization is handled at the application layer (Beanie ODM
+ migration manager), not via Docker init scripts.

Fixes EverMind-AI#90
Issue EverMind-AI#48: Inconsistent timestamp formats in episodic memories

Changes:
- Updated EPISODE_GENERATION_PROMPT to enforce strict ISO 8601 format
- Examples of correct format: 2026-01-23T02:19:25Z or 2026-01-23T10:07:00+08:00
- Explicitly prohibits Chinese characters, weekdays, and partial times

This ensures consistent timestamp parsing, sorting, and filtering in downstream operations.
Extends the timestamp format fix to Chinese language prompts as well.
Jah-yee added a commit to Jah-yee/EverMemOS that referenced this pull request Mar 3, 2026
…e docstring

- Replace bare 'except:' with 'except Exception:' in:
  - src/biz_layer/mem_db_operations.py (line 146)
  - src/infra_layer/adapters/out/search/repository/episodic_memory_milvus_repository.py (line 127)

- Enforce ISO 8601 timestamp format in episodic memory prompts:
  - Add strict format requirements: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM
  - Update examples to use ISO 8601 format
  - Prevents inconsistent timestamp formats (Chinese chars, weekdays, AM/PM, UTC)

- Remove duplicate 'rrf' entry in demo/utils/simple_memory_manager.py docstring

Fixes EverMind-AI#107, EverMind-AI#97, EverMind-AI#108 (related to EverMind-AI#48)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant